FROM ubuntu:18.04
LABEL maintainer="james@example.com"
ENV REFRESHED_AT 2020-07-08
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.aliyun.com@g" /etc/apt/sources.list
RUN sed -i "s@http://.*security.ubuntu.com@http://mirrors.aliyun.com@g" /etc/apt/sources.list
RUN apt-get -y update && apt-get -y install redis-server redis-tools

EXPOSE 6379
ENTRYPOINT [ "/usr/bin/redis-server" ]
CMD [ ]
